package com.xhtt.modules.task.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xhtt.common.utils.DateUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author feipc
 * @since 2019-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TaskShipTaskLmProductCompany {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer lmId;

    private String companyName;
    /**
     * 产品名称
     */
    private String productName;

    private String potName;

    private LocalDateTime sjddjl;//商检到达计量时间

    private LocalDateTime jlwc;//计量完成时间

    /**
     * 样品送出时间
     */
    private LocalDateTime ypsc;

    /**
     * 样品通过时间
     */
    private LocalDateTime yptg;

    /**
     * 接管完成时间
     */
    private LocalDateTime jgwc;

    /**
     * 启泵时间
     */
    private LocalDateTime qb;

    /**
     * 停泵时间
     */
    private LocalDateTime tb;

    private LocalDateTime sjddyc;//商检达到验舱时间

    /**
     * 拆管时间
     */
    private LocalDateTime cg;

    public void setSjddjl(LocalDateTime sjddjl) {
        if (DateUtils.NA_DATE.equals(sjddjl)) {
            sjddjl = null;
        }
        this.sjddjl = sjddjl;
    }

    public void setJlwc(LocalDateTime jlwc) {
        if (DateUtils.NA_DATE.equals(jlwc)) {
            jlwc = null;
        }
        this.jlwc = jlwc;
    }

    public void setYpsc(LocalDateTime ypsc) {
        if (DateUtils.NA_DATE.equals(ypsc)) {
            ypsc = null;
        }
        this.ypsc = ypsc;
    }

    public void setYptg(LocalDateTime yptg) {
        if (DateUtils.NA_DATE.equals(yptg)) {
            yptg = null;
        }
        this.yptg = yptg;
    }

    public void setJgwc(LocalDateTime jgwc) {
        if (DateUtils.NA_DATE.equals(jgwc)) {
            jgwc = null;
        }
        this.jgwc = jgwc;
    }

    public void setQb(LocalDateTime qb) {
        if (DateUtils.NA_DATE.equals(qb)) {
            qb = null;
        }
        this.qb = qb;
    }

    public void setTb(LocalDateTime tb) {
        if (DateUtils.NA_DATE.equals(tb)) {
            tb = null;
        }
        this.tb = tb;
    }

    public void setSjddyc(LocalDateTime sjddyc) {
        if (DateUtils.NA_DATE.equals(sjddyc)) {
            sjddyc = null;
        }
        this.sjddyc = sjddyc;
    }

    public void setCg(LocalDateTime cg) {
        if (DateUtils.NA_DATE.equals(cg)) {
            cg = null;
        }
        this.cg = cg;
    }
}
